#ifndef UNITTEST_MEMORYOUTSTREAM_H
#define UNITTEST_MEMORYOUTSTREAM_H

#include <sstream>

namespace UnitTest {
    class  MemoryOutStream : public std::ostringstream {
    public:
        MemoryOutStream() {}
        ~MemoryOutStream() {}
        void Clear();
        char const* GetText() const;
    private:
        MemoryOutStream(MemoryOutStream const&);
        void operator =(MemoryOutStream const&);
        mutable std::string m_text;
    };
}

#endif /* UNITTEST_MEMORYOUTSTREAM_H */
